﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace iPhoneAppGenre.models
{
    class ipaAppFolder
    {
        public ipaFile[] ipas;

        public ipaAppFolder(String ipaApplicationFolder)
        {
            DirectoryInfo di = new DirectoryInfo(ipaApplicationFolder);
            FileInfo[] rgFiles = di.GetFiles("*.ipa");
            int i = 0;
            ipaFile ipa;
            ipas = new ipaFile[rgFiles.Length];
            foreach (FileInfo fi in rgFiles)
            {
                ipa = new ipaFile(fi.FullName);
                ipa.dbid = i;
                ipas[i] = ipa;
                i++;
            }
        }
    }
}
